package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_WanliOtherPayment", catalog="Id")
public class TcwWanliOtherPayment extends BaseEntity<TcwWanliOtherPayment> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="DepositPlatformCode", nameJava="depositPlatformCode", typeDataBase="varchar")
	private String depositPlatformCode;
	@YsField(nameDataBase="PayType", nameJava="payType", typeDataBase="tinyint")
	private Integer payType;
	@YsField(nameDataBase="CountryCode", nameJava="countryCode", typeDataBase="varchar")
	private String countryCode;
	@YsField(nameDataBase="CurrencyCodeOut", nameJava="currencyCodeOut", typeDataBase="varchar")
	private String currencyCodeOut;
	@YsField(nameDataBase="ExchangeRate", nameJava="exchangeRate", typeDataBase="decimal")
	private BigDecimal exchangeRate;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="AmountTotalLocal", nameJava="amountTotalLocal", typeDataBase="decimal")
	private BigDecimal amountTotalLocal;
	@YsField(nameDataBase="AmountTotalCny", nameJava="amountTotalCny", typeDataBase="decimal")
	private BigDecimal amountTotalCny;
	@YsField(nameDataBase="AnnexFile", nameJava="annexFile", typeDataBase="varchar")
	private String annexFile;
	@YsField(nameDataBase="StateRunning", nameJava="stateRunning", typeDataBase="tinyint")
	private Integer stateRunning;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwWanliOtherPayment setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcwWanliOtherPayment setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TcwWanliOtherPayment setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public TcwWanliOtherPayment setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public String getDepositPlatformCode() {
		return depositPlatformCode;
	}
	public TcwWanliOtherPayment setDepositPlatformCode(String depositPlatformCode) {
		this.depositPlatformCode = depositPlatformCode;
		return this;
	}
	public Integer getPayType() {
		return payType;
	}
	public TcwWanliOtherPayment setPayType(Integer payType) {
		this.payType = payType;
		return this;
	}
	public String getCountryCode() {
		return countryCode;
	}
	public TcwWanliOtherPayment setCountryCode(String countryCode) {
		this.countryCode = countryCode;
		return this;
	}
	public String getCurrencyCodeOut() {
		return currencyCodeOut;
	}
	public TcwWanliOtherPayment setCurrencyCodeOut(String currencyCodeOut) {
		this.currencyCodeOut = currencyCodeOut;
		return this;
	}
	public BigDecimal getExchangeRate() {
		return exchangeRate;
	}
	public TcwWanliOtherPayment setExchangeRate(BigDecimal exchangeRate) {
		this.exchangeRate = exchangeRate;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcwWanliOtherPayment setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public BigDecimal getAmountTotalLocal() {
		return amountTotalLocal;
	}
	public TcwWanliOtherPayment setAmountTotalLocal(BigDecimal amountTotalLocal) {
		this.amountTotalLocal = amountTotalLocal;
		return this;
	}
	public BigDecimal getAmountTotalCny() {
		return amountTotalCny;
	}
	public TcwWanliOtherPayment setAmountTotalCny(BigDecimal amountTotalCny) {
		this.amountTotalCny = amountTotalCny;
		return this;
	}
	public String getAnnexFile() {
		return annexFile;
	}
	public TcwWanliOtherPayment setAnnexFile(String annexFile) {
		this.annexFile = annexFile;
		return this;
	}
	public Integer getStateRunning() {
		return stateRunning;
	}
	public TcwWanliOtherPayment setStateRunning(Integer stateRunning) {
		this.stateRunning = stateRunning;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwWanliOtherPayment setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwWanliOtherPayment setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwWanliOtherPayment setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwWanliOtherPayment tcwWanliOtherPayment(
		String bid,
		Integer effectStock,
		Long createChangeId,
		String depositPlatformCode,
		Integer payType,
		String countryCode,
		String currencyCodeOut,
		BigDecimal exchangeRate,
		String remark,
		BigDecimal amountTotalLocal,
		BigDecimal amountTotalCny,
		String annexFile,
		Integer stateRunning,
		Integer status
			) {
		TcwWanliOtherPayment entity = new TcwWanliOtherPayment();
		entity.setBid(bid);
		entity.setEffectStock(effectStock);
		entity.setCreateChangeId(createChangeId);
		entity.setDepositPlatformCode(depositPlatformCode);
		entity.setPayType(payType);
		entity.setCountryCode(countryCode);
		entity.setCurrencyCodeOut(currencyCodeOut);
		entity.setExchangeRate(exchangeRate);
		entity.setRemark(remark);
		entity.setAmountTotalLocal(amountTotalLocal);
		entity.setAmountTotalCny(amountTotalCny);
		entity.setAnnexFile(annexFile);
		entity.setStateRunning(stateRunning);
		entity.setStatus(status);
		return entity;
	}
}